﻿<UserControl x:Class="MyPoints.UserControls.Map"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:WindowsPresentation="clr-namespace:GMap.NET.WindowsPresentation;assembly=GMap.NET.WindowsPresentation"              
             xmlns:local="clr-namespace:MyPoints.UserControls"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300" >
  <DockPanel LastChildFill="True">
    <DockPanel DockPanel.Dock="Bottom" LastChildFill="True">
      <ComboBox x:Name="cmbMapType" DockPanel.Dock="Right" Width="100" SelectionChanged="cmbMapType_SelectionChanged">
        <ComboBoxItem IsSelected="True">
          <TextBlock>
            Map
          </TextBlock>
        </ComboBoxItem>
        <ComboBoxItem>
          <TextBlock>
            Satellite
          </TextBlock>
        </ComboBoxItem>
      </ComboBox>
      <Slider x:Name="sldZoom" DockPanel.Dock="Bottom" Orientation="Horizontal" 
            Minimum="{Binding MinZoom }" 
            Maximum="{Binding MaxZoom }" 
            Value="{Binding Zoom }" />
    </DockPanel>
    <WindowsPresentation:GMapControl x:Name="map" MouseWheel="map_MouseWheel" MouseWheelZoomType="MousePositionWithoutCenter" >
    </WindowsPresentation:GMapControl>
  </DockPanel>
</UserControl>
